
const superagent = require('superagent');

module.exports = router => {

    /** 添加订单 */
    router.post('/api/order/add', require('./fn/orderAdd'));

    /** 获取订单列表 */
    router.post('/api/order/list', require('./fn/orderList'));

    /** 获取订单详情 */
    router.get('/api/order/details/:id', require('./fn/orderDetails'));

    /** 更新订单数据 */
    router.post('/api/order/update', require('./fn/orderUpdate'));

    /** 订单转移 */
    router.post('/api/order/transfer/:id', require('./fn/orderTransfer'));

    /** 订单变更 */
    router.post('/api/order/change/:id', require('./fn/orderChange'));

    /** 安排PM */
    router.post('/api/order/planPm', require('./fn/orderPlanPm'));

    /** 制作完成 */
    router.post('/api/order/complete/:id', require('./fn/complete'));

    /** 通过审批 */
    router.post('/api/order/approved/:id', require('./fn/approved'));

    /** 导出excl */
    router.post('/api/order/exportExcl', require('./fn/exportExcl'));

    /** 重新分配PM */
    router.post('/api/order/resetPm/:id', require('./fn/resetPm'));

    /** 生产订单名称 */
    router.get('/api/order/generateName', require('./fn/generateName'));
}
